<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Loading</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        .circlebox {
            width: 40px;
            height: 40px;
            /* border: 1px solid lightgreen; */
            margin: 100px;
            position: absolute;
        }
        
        .circlebox p {
            position: absolute;
            width: 12px;
            height: 12px;
            background-color: lightgreen;
            border-radius: 50%;
            animation: move 1.5s infinite linear;
        }
        
        .circlebox p:nth-child(1) {
            top: 0;
            left: 0;
        }
        
        .circlebox p:nth-child(2) {
            top: 0;
            right: 0;
        }
        
        .circlebox p:nth-child(3) {
            bottom: 0;
            right: 0;
        }
        
        .circlebox p:nth-child(4) {
            bottom: 0;
            left: 0;
        }
        
        .circlebox:nth-of-type(2) {
            position: absolute;
            transform: rotate(45deg);
        }
        /*动画*/
        
        @keyframes move {
            0% {
                transform: scale(0);
            }
            50% {
                transform: scale(1);
            }
            100% {
                transform: scale(0);
            }
        }
        /*延迟时间*/
        
        .circlebox:nth-of-type(1) p:nth-of-type(1) {
            animation-delay: -0.1s;
        }
        
        .circlebox:nth-of-type(2) p:nth-of-type(1) {
            animation-delay: -0.3s;
        }
        
        .circlebox:nth-of-type(1) p:nth-of-type(2) {
            animation-delay: -0.5s;
        }
        
        .circlebox:nth-of-type(2) p:nth-of-type(2) {
            animation-delay: -0.7s;
        }
        
        .circlebox:nth-of-type(1) p:nth-of-type(3) {
            animation-delay: -0.9s;
        }
        
        .circlebox:nth-of-type(2) p:nth-of-type(3) {
            animation-delay: -1.1s;
        }
        
        .circlebox:nth-of-type(1) p:nth-of-type(4) {
            animation-delay: -1.3s;
        }
        
        .circlebox:nth-of-type(2) p:nth-of-type(4) {
            animation-delay: -1.5s;
        }
    </style>
</head>

<body>
    <div class="circlebox">
        <p></p>
        <p></p>
        <p></p>
        <p></p>
    </div>
    <div class="circlebox">
        <p></p>
        <p></p>
        <p></p>
        <p></p>
    </div>
</body>

</html>